/**
 * 
 */
package com.hexacta.hrs.web.struts.actions;

import java.util.Collection;

import com.hexacta.hrs.services.timeoff.TimeOffService;
import com.hexacta.hrs.timeoff.TimeOffStatusDetail;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author mfunes
 * 
 */
public class TimeOffStatusDetailsAction extends ActionSupport {

    private static final long serialVersionUID = 4581696960231374962L;

    private TimeOffService timeOffService;

    private long requestId;

    public void setRequestId(final long requestId) {
        this.requestId = requestId;
    }

    public void setTimeOffService(final TimeOffService timeOffService) {
        this.timeOffService = timeOffService;
    }

    private long getRequestId() {
        return requestId;
    }

    public Collection<TimeOffStatusDetail> getStatusDetailsList() {
        return timeOffService.searchById(getRequestId()).getStatusDetails();
    }
}
